package cn.uce.cc.rest.control;

import cn.uce.cc.api.service.biz.IWaybillBiz;
import cn.uce.web.common.base.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

@Controller
@RequestMapping(value = "cs/CsCommon")
public class CsCommonController extends BaseController {

    @Resource
    private IWaybillBiz waybillBiz;

    @RequestMapping("/findWaybllInfo")
    @ResponseBody
    public Map<String, Object> findWaybllInfo(String billCode){
        Map<String, Object> result = waybillBiz.findWaybllInfo(billCode);
        return result;
    }
    @RequestMapping("/findChildWaybllInfo")
    @ResponseBody
    public Map<String, Object> findChildWaybllInfo(String billCode){
        Map<String, Object> result = waybillBiz.findChildWaybllInfo(billCode);
        return result;
    }
}
